<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Index</title>
</head>
<body>

<h1>Hello world</h1>
<h3>welcome: {{ username }}</h3>
{% if stock < 10 %}
    <h3>nothing:{{ stock }}</h3>
{% elif stock >= 10 and stock <= 100 %}
    <h3>enough:{{ stock }}</h3>
{% else %}
    <h3>too mang:{{ stock }}</h3>
{% endif %}

<ul>
    <li>{{ news_list.0 }}</li>
    <li>{{ news_list.1 }}</li>
    <li>{{ news_list.2 }}</li>
    <li>{{ news_list.3 }}</li>
</ul>

{% for item in news_list %}
    <li>{{ item }}</li>
{% endfor %}

<table>
    <tr>
        <td>stock</td>
        <td>price</td>
    </tr>
    <tr>
        <td>{{ dic.name }}</td>
        <td>{{ dic.price }}</td>
    </tr>
</table>
<h3>{{ func }}</h3>

<h3>name:{{ mycat.name }}
color:{{ mycat.color }}
    <br>
    {{ mycat.Say }}
</h3>
{% load static %}
<img src="{% static '3.jpg' %}">

</body>
</html>